/*
 *  Constant.h
 *  CarDemo
 *
 *  Created by huang kun on 8/9/10.
 *  Copyright 2010 UESTC. All rights reserved.
 *
 */
///////////////////////////////////////*****GameLayer*****//////////////////////////////////////
#define roadRect		CGRectMake(76, 19, 342, 266)
#define roadWidth		38
#define roadHeight		38
#define roadColumn		7
#define roadRow			9
///////////////////////////////////////*****GameLayer*****//////////////////////////////////////


#define UP		1
#define DOWN	2
#define LEFT	3
#define RIGHT   4


#define kblocked		0	//阻塞的
#define kavaliable	1	//可用的
#define ktested		2	//测试过的
#define kused		3	//用到的路径

typedef struct {
	int up;		
	int down;
	int left;
	int right;	
	bool isBlock;	//是否是障碍物
} BlockShape;


#define maxBlockNum			5
#define randomBlockType		(rand()%maxBlockNum+1)

///////////////////////////////////////*****OptionLayer*****//////////////////////////////////////

#define optionBGMLeft			179
#define optionBGMRight			414
#define optionBGMWidth			235
#define optionBGMHeight			34
//#define optionBGMY				232
//#define optionSEY				172

#define optionBGMRect			CGRectMake(179, 210, 235, 44)
#define optionSERect			CGRectMake(179, 145, 235, 44)

#define saveButtonPosition		ccp(248, 55)
#define optionBGMPosition		ccp(296, 233)
#define optionSEPosition		ccp(296, 175)
#define vibrateOnPosition		ccp(190, 110)
#define vibrateOffPosition		ccp(349, 110)

#define optionBG				@"options.png"
#define soundOptionBG			@"sound.png"
#define soundOptionVibrateOn	@"VV.png"
#define soundOptionVibrateOff	@"XX.png"
#define optionSaveButton		@"Save01.png"
#define optionSaveButtonPressed @"Save03.png"
///////////////////////////////////////*****OptionLayer*****//////////////////////////////////////
